
			
			<div class="block">
			
				<div class="block_head">
					<div class="bheadl"></div>
					<div class="bheadr"></div>
					
					<h2>Prodotti in <?php echo $categoria->nome; ?></h2>
				</div>		<!-- .block_head ends -->
				
				<div class="block_content">
				
					<?php
						if (isset($_SESSION['user_message'])) {
							echo "<div class='message success'>".$_SESSION['user_message'] . "</div>";
							unset($_SESSION['user_message']);
						}
					?>

					<form action="" method="post">
					
						<table cellpadding="0" cellspacing="0" width="100%" class="sortable">
						
							<thead>
								<tr>
									<th>&nbsp;</th>
									<th>ID</th>
									<th>Nome</th>
									<th>Descrizione</th>
									<th>Prezzo</th>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
								</tr>
							</thead>
							
							<tbody>
								<?php
								foreach ($prodotti as $row)
								{
									echo "<tr>";
									echo "<td>".img($row->thumb_url)."</td>";
									echo "<td>".$row->nome."</td>";
									echo "<td>".$row->descrizione."</td>";
									echo "<td>".$row->nascosto."</td>";
									echo "<td>".$row->prezzo."</td>";
									echo "<td width='70px'>". anchor('products/productedit/'.$row->id,'modifica') ."</td>";
									echo "<td width='70px'>". anchor('products/productdelete/'.$row->id,'cancella') ."</td>";

									echo "</tr>";
								}
								?>
							</tbody>
							
						</table>
								
						
						
						<div class="pagination right">
							<a href="#">&laquo;</a>
							<a href="#" class="active">1</a>
							<a href="#">2</a>
							<a href="#">3</a>
							<a href="#">4</a>
							<a href="#">5</a>
							<a href="#">6</a>
							<a href="#">&raquo;</a>
						</div>		<!-- .pagination ends -->

					</form>
					<?php echo anchor('products/product_new/'.$categoria->id,'Nuovo Prodotto'); ?>
				</div>		<!-- .block_content ends -->
				
				<div class="bendl"></div>
				<div class="bendr"></div>
			</div>		<!-- .block ends -->
			